package com.geega.geetest.core;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class ApiResponse {
    private String code;
    private String msg;
    private Object result;

    public static ApiResponse ok(Object data) {
        return new ApiResponse("0000", "success", data);
    }

    public static ApiResponse fail(String msg) {
        return new ApiResponse("0001", msg, null);
    }
}
